<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			window.onload=function(){
				//document的属性
				console.log(document.body);
				console.log(document.domain);
				console.log(document.URL);
				console.log(document.referrer);
				console.log(document.title);
				
				setInterval(function){
				//修改背景颜色
				var r=Math.floor(Math.random()*256);
				var a=Math.floor(Math.random()*256);
				document.body.style.background="ra("+r+","+a+")"
				//网页标题
				if(i==0){
					document.title="ywihfoq";
					i=1;
				}else{
					document.title="irhyuf";
					i=0;
				}
					
				}
			}
		</script>
	</body>
</html>
